@echo off

REM Get the root folder and prepare related parameters
set BASE_DIR=%~dp0

REM Check environment
cd "%BASE_DIR%"
if not exist logs mkdir logs

REM Startup Apache HTTPD Server
echo "Starting Apache HTTPD Server..."
cd "%BASE_DIR%\platform\Apache2.2\bin"
httpd -n "Ultro Explorer Web Server" -f "%BASE_DIR%\platform\Apache2.2\conf\httpd.conf" -d "%BASE_DIR%\platform\Apache2.2" -k install
cd "%BASE_DIR%\"
echo "Apache HTTPD Server Started"